class Solution {
public:
    int getSum(int a, int b) {
        //return a+b;

        int c=0;
        unsigned int d=0;
        do
        {
            d=(unsigned int)(a&b)<<1;
            c=a^b;
            a=c;
            b=d;
        }while(b!=0);
        return c;
    }
};
